from django.contrib import admin
from django.urls import path
from django.views.static import serve
from django.conf import settings

from test1.views import test

urlpatterns = [
    path('admin/', admin.site.urls),
    path('media/<path:path>', serve, {'document_root': settings.MEDIA_ROOT}),  # 开放media
    path('test/', test),

]
